package org.interactive.spring.intro.transport;

import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * GenericResponse class
 *
 * @author bogdan.solga
 *
 * Date: 05.06.2013, time: 09:41
 */
@XmlRootElement
public class GenericResponse implements Serializable {
    public enum Status {
        SUCCESSFUL, ERROR, WARNING;
    }

    private Status status;

    private String errorMessage;

    public GenericResponse() {
    }

    public GenericResponse(Status status) {
        this.status = status;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}

